package com.dy.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.dy.system.mapper.MedicalInstitutionMapper;
import com.dy.system.domain.MedicalInstitution;
import com.dy.system.service.IMedicalInstitutionService;

/**
 * 【请填写功能名称】Service业务层处理
 *
 * @author anps
 * @date 2022-07-27
 */
@Service
public class MedicalInstitutionServiceImpl implements IMedicalInstitutionService{
    @Autowired
    private MedicalInstitutionMapper medicalInstitutionMapper;

    /**
     * 查询【请填写功能名称】
     *
     * @param id 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public MedicalInstitution selectMedicalInstitutionById(Long id){
        return medicalInstitutionMapper.selectMedicalInstitutionById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     *
     * @param medicalInstitution 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<MedicalInstitution> selectMedicalInstitutionList(MedicalInstitution medicalInstitution){
        return medicalInstitutionMapper.selectMedicalInstitutionList(medicalInstitution);
    }

    /**
     * 新增【请填写功能名称】
     *
     * @param medicalInstitution 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertMedicalInstitution(MedicalInstitution medicalInstitution){
        return medicalInstitutionMapper.insertMedicalInstitution(medicalInstitution);
    }

    /**
     * 修改【请填写功能名称】
     *
     * @param medicalInstitution 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateMedicalInstitution(MedicalInstitution medicalInstitution){
        return medicalInstitutionMapper.updateMedicalInstitution(medicalInstitution);
    }

    /**
     * 批量删除【请填写功能名称】
     *
     * @param ids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteMedicalInstitutionByIds(Long[] ids){
        return medicalInstitutionMapper.deleteMedicalInstitutionByIds(ids);
    }

    /**
     * 删除【请填写功能名称】信息
     *
     * @param id 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteMedicalInstitutionById(Long id){
        return medicalInstitutionMapper.deleteMedicalInstitutionById(id);
    }

    @Override
    public List<MedicalInstitution> getNotUploadedInstitutionList(Long deptId, String session,String year) {
        return medicalInstitutionMapper.getNotUploadedInstitutionList(deptId,session,year);
    }
}
